import axios from "@/api/myaxios";

export let userApi = {
    loginByEmail(user) {
        return axios.post("/userApi/user/login/email", user)
    },
    getUserInfo() {
        return axios.get("/userApi/user/info")
    },
    getUserInfoByUserId(id) {
        return axios.get("/userApi/user/info/" + id)
    }
}